package com.zyx.restaurant.server.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.zyx.restaurant.server.common.enums.RestaurantStatus;
import lombok.Data;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/22 07:33
 */
@Data
@TableName(value = "restaurant")
public class RestaurantPO {
    /**
     * 餐厅id
     */
    @TableId(value = "id", type = IdType.NONE)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private RestaurantStatus status;

    /**
     * 结算id
     */
    @TableField(value = "settlement_id")
    private Integer settlementId;

    /**
     * 时间
     */
    @TableField(value = "`date`")
    private Date date;
}